
switch_visible=function(id) {
  element=document.getElementById(id);
  if (element.style.display == "none") {
    element.style.display = "";
  } else {
    element.style.display = "none";
  }
}
$(<%= raw "question_#{@question.id}" %>).replaceWith('<%=j render partial: 'questions/question', locals: {question: @question, render_with_js: true, display_edit: @question_type_changed} %>');
